﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPgAdmin.master" AutoEventWireup="true" CodeFile="InsertUsers.aspx.cs" Inherits="Admin_InsertUsers" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Header1" Runat="Server">
    <td>
    <div id="Holder">
        
    </div>
</td>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
   
    



    <div style="background-image:url('../Images/body-bg.png');direction:rtl;padding-bottom:20px;padding-top:10px;border:1px solid #ccc;box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.075) inset;border-radius: 4px;">
        <div style="padding-right:350px; width:100%">
        <asp:Image ID="Image2" runat="server" 
                        ImageUrl="~/Images/ManageUsers.png" Width="17%"  />
        </div>
     
      
        <div style="width:90%;margin:auto; background-image:url('../Images/content-bg.png');padding-right:8px;border:1px solid #ccc;box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.075) inset;border-radius: 4px;">
          <div style="margin-bottom:30px;padding-top:30px;padding-right:20%">
         <asp:RadioButtonList ID="RlistUser" runat="server" RepeatDirection="Horizontal" 
                      Width="80%">
                      <asp:ListItem Value="Mng">مدیریت کارشناسان</asp:ListItem>
                      <asp:ListItem Value="Fin">مدیریت مالی</asp:ListItem>
                      <asp:ListItem Value="Secr">منشی</asp:ListItem>
                  </asp:RadioButtonList>
        </div>
       <table  >
        
       
        <tr>
            <td class="style8" style="width: 120px; height: 20px;" align="right">
                <asp:Label ID="Label1" runat="server" CssClass="Radi" Text="نام"></asp:Label>
            </td>
            <td style="width: 87px; height: 20px;" align="right">
                <asp:TextBox ID="Txname" runat="server" 
                    TabIndex="1" onBlur="if(this.value =='')this.value='نام'" onFocus="if(this.value=='نام')this.value='' " CssClass="textbox"></asp:TextBox>
            </td>
            <td style="width: 22px; height: 20px;" align="center">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ErrorMessage="*" ControlToValidate="Txname" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            <td class="style8" style="width: 167px; height: 20px;">
                &nbsp;</td>
            <td class="style8" style="width: 88px; height: 20px;" align="right">
                  <asp:Label ID="Label5" runat="server" CssClass="Radi" Text="شماره تلفن"></asp:Label>
            </td>
            <td class="style8" style="width: 62px; height: 20px;">
                <asp:TextBox ID="TxTele" runat="server"  
                    TabIndex="6" onBlur="if(this.value=='')this.value='شماره تلفن'" 
                    onFocus="if(this.value=='شماره تلفن')this.value='' " CssClass="textbox"></asp:TextBox>
            </td>
            <td style="width: 6px; height: 20px;" class="style8">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                    ErrorMessage="*" ControlToValidate="TxTele" ForeColor="Red"></asp:RequiredFieldValidator>  
            </td>
        </tr>
        <tr>
            <td class="style8" style="width: 120px; height: 37px;" align="right">
                <asp:Label ID="Label2" runat="server" CssClass="Radi" Text="نام خانوادگی"></asp:Label>
            </td>
            <td style="width: 87px; height: 37px;" align="right">
                <asp:TextBox ID="Txfamily" runat="server"  
                    TabIndex="2" onBlur="if(this.value=='')this.value='نام خانوادگی'" 
                    onFocus="if(this.value=='نام خانوادگی')this.value='' " CssClass="textbox" 
                    style="margin-bottom: 0px"></asp:TextBox>
            </td>
            <td style="width: 22px; height: 37px;" align="center">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ErrorMessage="*" ControlToValidate="Txfamily" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            <td class="style8" style="width: 167px; height: 37px;">
                &nbsp;</td>
            <td class="style8" style="width: 88px; height: 37px;" align="right">
                <asp:Label ID="Label6" runat="server" CssClass="Radi" Text="شماره موبایل"></asp:Label>
            </td>
            <td class="style8" style="width: 62px; height: 37px;">
                <asp:TextBox ID="TxMob" runat="server"  TabIndex="7" 
                    onBlur="if(this.value=='')this.value='شماره موبایل'" 
                    onFocus="if(this.value=='شماره موبایل')this.value='' " CssClass="textbox"></asp:TextBox>
            </td>
            <td style="width: 6px; height: 37px;" class="style8">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                    ErrorMessage="*" ControlToValidate="TxMob" ForeColor="Red"></asp:RequiredFieldValidator>  
            </td>
        </tr>
        <tr>
            <td class="style8" style="width: 120px; height: 31px;" align="right">
                <asp:Label ID="Label7" runat="server" CssClass="Radi" Text="نام کاربری"></asp:Label>
                </td>
            <td style="width: 87px; height: 31px;" align="right">
                <asp:TextBox ID="TxUser" runat="server" 
                    TabIndex="3" onBlur="if(this.value=='')this.value='نام کاربری'" 
                    onFocus="if(this.value=='نام کاربری')this.value='' " CssClass="textbox"></asp:TextBox>
            </td>
            <td style="width: 22px; height: 31px;" align="center">
                 <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ErrorMessage="*" ControlToValidate="TxAddre" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            <td class="style8" style="width: 167px; height: 31px;">
                &nbsp;</td>
            <td class="style8" style="width: 88px; height: 31px;" align="right">
                <asp:Label ID="Label3" runat="server" CssClass="Radi" Text="آدرس"></asp:Label>
            </td>
            <td class="style8" style="width: 62px; height: 31px;">
                <asp:TextBox ID="TxAddre" runat="server" 
                    TabIndex="8" onBlur="if(this.value=='')this.value='آدرس'" 
                    onFocus="if(this.value=='آدرس')this.value='' " CssClass="textbox"></asp:TextBox>
            </td>
            <td style="width: 6px; height: 31px;" class="style8">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ErrorMessage="*" ControlToValidate="TxUser" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="height: 22px; width: 120px;" align="right">
                <asp:Label ID="Label8" runat="server" CssClass="Radi" Text="رمز عبور"></asp:Label>
                </td>
            <td style="height: 22px; width: 87px;" align="right">
                <asp:TextBox ID="TxPass" runat="server" 
                    TabIndex="4" TextMode="Password" CssClass="textbox"></asp:TextBox>
                </td>
            <td style="width: 22px; height: 22px;" align="center">
                <asp:RequiredFieldValidator ID="RegPass" runat="server" 
                    ErrorMessage="*" ControlToValidate="TxPass" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            <td class="style8" style="width: 167px; height: 22px;">
                <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
                    ErrorMessage="حداقل 6 کاراکتر وارد کنید" ForeColor="Red" 
                    ValidationExpression=".{6,}" ControlToValidate="TxPass" ></asp:RegularExpressionValidator>
            </td>
            <td class="style8" style="width: 88px; height: 22px;" align="right">
                <asp:Label ID="Label4" runat="server" CssClass="Radi" Text="آدرس ایمیل "></asp:Label>
            </td>
            <td class="style8" style="width: 62px; height: 22px;">
                <asp:TextBox ID="TxEmai" runat="server" 
                    TabIndex="9" onBlur="if(this.value=='')this.value='آدرس ایمیل'" 
                    onFocus="if(this.value=='آدرس ایمیل')this.value='' " CssClass="textbox"></asp:TextBox>
            </td>
            <td style="width: 6px; height: 22px;" class="style8">
                 <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                    ErrorMessage="*" ControlToValidate="TxEmai" ForeColor="Red"></asp:RequiredFieldValidator> 
            </td>
        </tr>
        <tr>
            <td style="height: 22px; width: 120px;" align="right">
                <asp:Label ID="Label9" runat="server" CssClass="Radi" Text="تکرار رمز عبور"></asp:Label>
                </td>
            <td style="width: 87px; height: 22px;" align="right">
                <asp:TextBox ID="TxConf" runat="server"  TabIndex="5" 
                     TextMode="Password" CssClass="textbox"></asp:TextBox>
                </td>
            <td style="width: 22px; height: 22px;" align="center">
                <asp:RequiredFieldValidator ID="RegPass0" runat="server" 
                    ErrorMessage="*" ControlToValidate="TxConf" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            <td class="style8" style="width: 167px; height: 22px;">
                <asp:CompareValidator ID="CompareValidator1" runat="server" 
                     ErrorMessage="تکرار رمز اشتباه" ControlToValidate="TxConf" 
                    ControlToCompare="TxPass" ForeColor="Red"></asp:CompareValidator>
            </td>
            <td class="style8" style="width: 88px; height: 22px;" align="right">
                &nbsp;</td>
            <td class="style8" style="width: 62px; height: 22px;">
                &nbsp;</td>
            <td style="width: 6px; height: 22px;" class="style8">
                &nbsp;</td>
        </tr>
        <tr>
            <td style="height: 22px; width: 120px;" align="right">
                &nbsp;</td>
            <td style="height: 22px; width: 87px;">
                &nbsp;</td>
            <td style="height: 22px;" colspan="5" align="center">
                <asp:Label ID="LblSuccess" runat="server" BackColor="#FFCC00" 
                    BorderColor="#0033CC" ForeColor="#0033CC"></asp:Label>
                <asp:Button ID="BtReg" runat="server" Height="23px"  
                    Text="ثبت کاربر" Width="113px" onclick="BtReg_Click" CssClass="Button"  />
                <asp:Label ID="Lbl" runat="server" BackColor="#00CCFF" CssClass="Radi" 
                    Visible="False"></asp:Label>
                <asp:Label ID="LblStatus" runat="server" BackColor="#003366" Font-Size="10pt" 
                    ForeColor="#FF6600" Visible="False"></asp:Label>
            </td>
        </tr>
        <tr >
            <td style="height: 22px; " align="right" colspan="7" >
            <br /><br />
                <asp:Panel ID="PlUserData" runat="server" Visible="false">
                
            <div style="border: 1px solid #DEDEDE;border-radius:3px;box-shadow: 0px 0px 10px rgba(189, 189, 189, 0.4);padding :10px;width:90%;margin:auto;">
                <div  class="headerTable" >
                <div style="width:10%;float:right">
                    <asp:Image ID="Image1" runat="server" src="../Images/ava_default_1.jpg" Height="40px" />
                </div>
                <div style="width:50%;float:right">
                    <h3><asp:Label ID="Label10" runat="server" Text="اطلاعات کاربران ثبت شده"></asp:Label></h3>
                </div>
                
                
                </div>
                <div  >
                






                <asp:GridView ID="GridView1" runat="server" CellPadding="4" ForeColor="#333333" 
                    GridLines="None" Width="100%" AutoGenerateColumns="False" 
                     AllowPaging="True">
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                         <asp:BoundField DataField="username" HeaderText="نام کاربری" />
                     <asp:BoundField DataField="name" HeaderText="نام" />
                    <asp:BoundField DataField="family" HeaderText="نام خانوادگی" />
                        <asp:BoundField DataField="phone" HeaderText="شماره تلفن" />
                        <asp:BoundField DataField="Mobile" HeaderText="شماره موبایل" />
                        <asp:BoundField DataField="email" HeaderText="آدرس ایمیل" />
                        <asp:BoundField DataField="address" HeaderText="آدرس" />
                        
                    </Columns>
                    <EditRowStyle BackColor="#2461BF" />
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#EFF3FB" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#F5F7FB" />
                    <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                    <SortedDescendingCellStyle BackColor="#E9EBEF" />
                    <SortedDescendingHeaderStyle BackColor="#4870BE" />
                </asp:GridView>
                </div>
                
            </div>
                </asp:Panel>
                
            </td>
        </tr>
    </table>

        </div>
    </div>
   
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Header" Runat="Server">
</asp:Content>

